<?xml version="1.0" encoding="utf-8"?>

<div xmlns="http://www.w3.org/1999/xhtml" xid="window" class="window" component="$UI/system/components/justep/window/window"
  design="device:m;">  
  <div component="$UI/system/components/justep/model/model" xid="model" onLoad="modelLoad" style="top:12px;left:72px;height:auto;"> 
    <div component="$UI/system/components/justep/data/baasData" autoLoad="true"
      xid="treeViewData" queryAction="queryPointtreeview" url="/Highde/tree_action"
      tableName="pointtreeview" idColumn="fNodeId" limit="10" isTree="true" onIndexChanged="treeViewDataIndexChanged"> 
      <column label="fNodeId" name="fNodeId" type="String" xid="default35"/>  
      <column label="fNodeName" name="fNodeName" type="String" xid="default36"/>  
      <column label="fParentID" name="fParentID" type="String" xid="default37"/>  
      <column label="fTableName" name="fTableName" type="String" xid="default38"/>  
      <treeOption xid="default39" parentRelation="fParentID" delayLoad="true" rootFilter="fNodeId='lossage'"/>  
      <!-- <filter name="filter0" xid="filter1"><![CDATA[fNodeId='lossage' OR fParentId is not NULL]]></filter> --> 
    </div>  
    <div component="$UI/system/components/justep/data/baasData" autoLoad="true" xid="projectData" queryAction="queryProject_name_table" saveAction="saveProject_name_table" url="/Highde/config_path_action" tableName="project_name_table" idColumn="fID"><column label="ID" name="fID" type="String" xid="default1"></column>
  <column label="项目名称" name="fProjectName" type="String" xid="default2"></column>
  <column label="项目位置" name="fProjectArea" type="String" xid="default3"></column>
  <column label="项目管理员" name="fProjectAdmin" type="String" xid="default4"></column>
  <column label="项目类型" name="fProjectType" type="String" xid="default5"></column></div>
  <div component="$UI/system/components/justep/data/baasData" autoLoad="true" xid="gatewayData" queryAction="queryGateway_table" saveAction="saveGateway_table" url="/Highde/config_path_action" tableName="gateway_table" idColumn="fID"><column label="ID" name="fID" type="String" xid="default6"></column>
  <column label="描述名称" name="fName" type="String" xid="default7"></column>
  <column label="IP地址" name="fIP" type="String" xid="default8"></column>
  <column label="端口" name="fPort" type="Integer" xid="default9"></column>
  <column label="项目" name="fProject" type="String" xid="default10"></column></div>
  <div component="$UI/system/components/justep/data/baasData" autoLoad="true" xid="equipData" queryAction="queryEquip_table" saveAction="saveEquip_table" url="/Highde/config_path_action" tableName="equip_table" idColumn="fID"><column label="ID" name="fID" type="String" xid="default11"></column>
  <column label="设备序列号" name="fSID" type="String" xid="default12"></column>
  <column label="设备名" name="fName" type="String" xid="default13"></column>
  <column label="协议" name="fProtocol" type="String" xid="default14"></column>
  <column label="设备地址" name="fModbusID" type="String" xid="default15"></column>
  <column label="上级设备" name="fParentID" type="String" xid="default16"></column>
  <column label="网关" name="fGatewayID" type="String" xid="default17"></column>
  <column label="显示名" name="fDis" type="String" xid="default18"></column>
  <column label="辅助参数" name="fOther" type="String" xid="default19"></column>
  <column label="设备类型" name="fEquipType" type="String" xid="default20"></column></div>
  <div component="$UI/system/components/justep/data/baasData" autoLoad="true" xid="realData" queryAction="queryReal_data_table" saveAction="saveReal_data_table" url="/Highde/data_action" tableName="real_data_table" idColumn="fID"><column label="ID" name="fID" type="String" xid="default21"></column>
  <column label="点名称" name="fPointName" type="String" xid="default22"></column>
  <column label="数据点类型" name="fPointType" type="String" xid="default23"></column>
  <column label="寄存器类型" name="fPointRegType" type="String" xid="default24"></column>
  <column label="寄存器编号" name="fPointRegNo" type="Integer" xid="default25"></column>
  <column label="比例变比" name="fRange" type="Float" xid="default26"></column>
  <column label="标准值" name="fStandardValue" type="Double" xid="default27"></column>
  <column label="显示名称" name="fDis" type="String" xid="default28"></column>
  <column label="所属设备" name="fEquipID" type="String" xid="default29"></column>
  <column label="数据长度类型" name="fDataLengthType" type="String" xid="default30"></column>
  <column label="上次记录数据" name="fLastRecordData" type="Double" xid="default31"></column>
  <column label="数据单位" name="fUnit" type="String" xid="default32"></column></div>
  <div component="$UI/system/components/justep/data/baasData" autoLoad="true" xid="visualData" queryAction="queryVisual_data_table" saveAction="saveVisual_data_table" url="/Highde/data_action" tableName="visual_data_table" idColumn="fID"><column label="ID" name="fID" type="String" xid="default33"></column>
  <column label="点名称" name="fPointName" type="String" xid="default34"></column>
  <column label="数据点类型" name="fPointType" type="String" xid="default40"></column>
  <column label="比例变比" name="fRange" type="Float" xid="default41"></column>
  <column label="标准值" name="fStandardValue" type="Double" xid="default42"></column>
  <column label="显示名称" name="fDis" type="String" xid="default43"></column>
  <column label="所属设备" name="fEquipID" type="String" xid="default44"></column>
  <column label="上次记录数据" name="fLastRecordData" type="Double" xid="default45"></column>
  <column label="数据单位" name="fUnit" type="String" xid="default46"></column></div></div>  
  <span component="$UI/system/components/justep/windowDialog/windowDialog" xid="windowDialogAddOrEdit" forceRefreshOnOpen="true" style="top:34px;left:29px;"></span><div component="$UI/system/components/justep/panel/panel" class="x-panel x-full"
    xid="panel1"> 
    <div class="x-panel-top" xid="top2" visible="true"> 
       
    <div component="$UI/system/components/justep/titleBar/titleBar" title="配置变更" class="x-titlebar" xid="titleBar1">
   <div class="x-titlebar-left" xid="left1">
    </div> 
   <div class="x-titlebar-title" xid="title1">配置变更</div>
   <div class="x-titlebar-right reverse" xid="right1">
    </div> </div></div>  
    <div class="x-panel-content" xid="content1"> 
      <!-- <div component="$UI/system/components/justep/row/row" class="x-row" xid="row1"> 
        <div class="x-col" xid="col1"> 
          <a component="$UI/system/components/justep/button/button" class="btn btn-default btn-icon-left btn-block"
            label="项目设置" xid="button1" icon="dataControl dataControl-home"> 
            <i xid="i1" class="dataControl dataControl-home"/>  
            <span xid="span1">项目设置</span> 
          </a> 
        </div>  
        <div class="x-col" xid="col2"> 
          <a component="$UI/system/components/justep/button/button" class="btn btn-default btn-icon-left btn-block"
            label="网关设置" xid="button2" icon="linear linear-inbox"> 
            <i xid="i2" class="linear linear-inbox"/>  
            <span xid="span2">网关设置</span> 
          </a> 
        </div> 
      </div>  
      <div component="$UI/system/components/justep/row/row" class="x-row" xid="row3"> 
        <div class="x-col" xid="col7"> 
          <a component="$UI/system/components/justep/button/button" class="btn btn-default btn-icon-left btn-block"
            label="设备设置" xid="button3" icon="linear linear-enter"> 
            <i xid="i3" class="linear linear-enter"/>  
            <span xid="span3">设备设置</span> 
          </a> 
        </div>  
        <div class="x-col" xid="col8"> 
          <a component="$UI/system/components/justep/button/button" class="btn btn-default btn-icon-left btn-block"
            label="采集点设置" xid="button4" icon="linear linear-history"> 
            <i xid="i4" class="linear linear-history"/>  
            <span xid="span4">采集点设置</span> 
          </a> 
        </div> 
      </div>  
      <div component="$UI/system/components/justep/row/row" class="x-row" xid="row4"> 
        <div class="x-col" xid="col11"> 
          <a component="$UI/system/components/justep/button/button" class="btn btn-default btn-icon-left btn-block"
            label="目视点设置" xid="button6" icon="linear linear-eye"> 
            <i xid="i5" class="linear linear-eye"/>  
            <span xid="span5">目视点设置</span> 
          </a> 
        </div>  
        <div class="x-col" xid="col10"> 
          <a component="$UI/system/components/justep/button/button" class="btn btn-default btn-icon-left btn-block"
            label="关于" xid="button5"> 
            <i xid="i6"/>  
            <span xid="span6">关于</span> 
          </a> 
        </div> 
      </div>   -->  
      <div component="$UI/system/components/justep/tree/tree" class="x-tree x-inner-scroll"
        xid="tree1" data="treeViewData" labelColumn="fNodeName" rootLabel="用户"> 
        <div class="x-tree-head" xid="div1"> 
          <ul component="$UI/system/components/bootstrap/breadcrumb/breadcrumb"
            class="breadcrumb"/> 
        </div>  
        <div class="x-tree-content x-scroll-view" xid="div2"> 
          <div component="$UI/system/components/justep/scrollView/scrollView"
            supportPullDown="true" supportPullUp="true" hScroll="false" vScroll="true"
            hScrollbar="false" vScrollbar="true" bounce="true" class="x-scroll" xid="scrollView1"> 
            <div class="x-content-center x-pull-down container" xid="div3"> 
              <i class="x-pull-down-img glyphicon x-icon-pull-down" xid="i7"/>  
              <span class="x-pull-down-label" xid="span7">下拉刷新...</span> 
            </div>  
            <ul class="x-tree-template x-scroll-content" xid="treeTemplateUl1"> 
              <div component="$UI/system/components/justep/row/row" class="x-row"
                xid="row2"> 
                <div class="x-col" xid="col3"> 
                  <li class="x-tree-link" xid="li1"> 
                    <!-- <div class="x-col" xid="col3">  -->  
                    <div component="$UI/system/components/justep/output/output"
                      class="x-output" xid="output1" bind-ref="ref(&quot;fNodeName&quot;)"/>  
                    <!-- </div> --> 
                  </li> 
                </div>  
                <div class="x-col x-col-10" xid="col5" style="width:60;"> 
                  <a component="$UI/system/components/justep/button/button"
                    class="btn btn-link btn-lg btn-only-icon btn-block" label="编辑"
                    xid="buttonEdit" icon="dataControl dataControl-edit" onClick="buttonEditClick" bind-visible=' val("fTableName")  != "user_table"'> 
                    <i xid="i3" class="dataControl dataControl-edit"/>  
                    <span xid="span3">编辑</span> 
                  </a> 
                </div>  
                <div class="x-col x-col-10" xid="col6" style="width:60;"> 
                  <a component="$UI/system/components/justep/button/button"
                    class="btn btn-link btn-lg btn-only-icon btn-block" label="删除"
                    xid="buttonDelete" icon="dataControl dataControl-closel" onClick="buttonDeleteClick" bind-visible='val("fTableName") != "user_table"&amp;&amp;false'> 
                    <i xid="i4" class="dataControl dataControl-closel"/>  
                    <span xid="span4">删除</span> 
                  </a> 
                </div> 
              </div> 
            </ul>  
            <div class="x-content-center x-pull-up" xid="div4"> 
              <span class="x-pull-up-label" xid="span8">加载更多...</span> 
            </div> 
          </div> 
        </div> 
      </div> 
    </div> 
  <div class="x-panel-bottom" xid="bottom1" visible="true"><div component="$UI/system/components/justep/row/row" class="x-row" xid="row1"> 
        <div class="x-col" xid="col4"> 
           
        <a component="$UI/system/components/justep/button/button" class="btn btn-default btn-block" label="添加点检数据" xid="buttonAddVisual" bind-visible='$model.treeViewData.val("fTableName")=="real_data_table" || $model.treeViewData.val("fTableName")=="visual_data_table"' onClick="buttonAddVisualClick">
   <i xid="i1"></i>
   <span xid="span1">添加点检数据</span></a></div> 
      <div class="x-col" xid="col1"><a component="$UI/system/components/justep/button/button" class="btn btn-default btn-block" label="添加" xid="buttonAdd" bind-visible='$model.treeViewData.val("fTableName") != "user_table"' onClick="buttonAddClick"> 
            <i xid="i2" />  
            <span xid="span2">添加</span> 
          </a></div></div></div></div> 
</div>
